@@ -23,7 +23,7 @@ module AgentControllerConcern |
||
| 23 | 23 |
end |
| 24 | 24 |
end |
| 25 | 25 |
|
| 26 |
- def control_targets! |
|
| 26 |
+ def control! |
|
| 27 | 27 |
targets.active.each { |target|
|
| 28 | 28 |
begin |
| 29 | 29 |
case control_action |
@@ -90,7 +90,7 @@ module Agents |
||
| 90 | 90 |
end |
| 91 | 91 |
|
| 92 | 92 |
def check! |
| 93 |
- control_targets! |
|
| 93 |
+ control! |
|
| 94 | 94 |
end |
| 95 | 95 |
|
| 96 | 96 |
def validate_options |
@@ -0,0 +1,4 @@ |
||
| 1 |
+class RenameTargetIdToControlTargetId < ActiveRecord::Migration |
|
| 2 |
+ def change |
|
| 3 |
+ end |
|
| 4 |
+end |
@@ -58,6 +58,7 @@ describe DotHelper do |
||
| 58 | 58 |
\A |
| 59 | 59 |
digraph \x20 "Agent \x20 Event \x20 Flow" \{
|
| 60 | 60 |
node \[ [^\]]+ \]; |
| 61 |
+ edge \[ [^\]]+ \]; |
|
| 61 | 62 |
(?<foo>\w+) \[label=foo\]; |
| 62 | 63 |
\k<foo> -> (?<bar1>\w+) \[style=dashed\]; |
| 63 | 64 |
\k<foo> -> (?<bar2>\w+) \[color="\#999999"\]; |
@@ -75,6 +76,7 @@ describe DotHelper do |
||
| 75 | 76 |
\A |
| 76 | 77 |
digraph \x20 "Agent \x20 Event \x20 Flow" \{
|
| 77 | 78 |
node \[ [^\]]+ \]; |
| 79 |
+ edge \[ [^\]]+ \]; |
|
| 78 | 80 |
(?<foo>\w+) \[label=foo,tooltip="Dot \x20 Foo",URL="#{Regexp.quote(agent_path(@foo))}"\];
|
| 79 | 81 |
\k<foo> -> (?<bar1>\w+) \[style=dashed\]; |
| 80 | 82 |
\k<foo> -> (?<bar2>\w+) \[color="\#999999"\]; |